import Vue from 'vue'
import App from '@/App'
import store from '@/store'

Vue.config.productionTip = false
App.mpType = 'app'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

uni.$u.props.datetimePicker.title = '点击以选择'
uni.$u.props.datetimePicker.itemHeight = 40
uni.$u.props.datetimePicker.visibleItemCount = 8
uni.$u.props.picker.title = '点击以选择'
uni.$u.props.picker.itemHeight = 40
uni.$u.props.picker.visibleItemCount = 8

// 注册全局过滤器
import * as filters from '@/utils/filters'
for (const key in filters) {
  Vue.filter(key, filters[key])
}

const app = new Vue({
  ...App,
  store,
})

// 引入请求封装，将app参数传递到配置中
require('@/utils/request')(app)

app.$mount()
